package com.yuan.farmerwork.ynblog.rest;

import com.yuan.farmerwork.ynblog.utils.constants.PageConstants;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 公共前端控制器.
 *
 * @author yjs
 * @date 2021/1/14 15:06
 */
@Controller
public class CommonController {

    /**
     * 404页面.
     *
     * @return
     */
    @GetMapping("/haserror")
    public String error() {
        return PageConstants.PAGE_404;
    }
}
